﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConceptsFramework.AbstractConceptElements;
using ConceptsFramework.Containers.Generic;
using ConceptsFramework.DerivedRelationships;

namespace PatternExplorer.DerivedConcepts
{
    public class MultipleGenericParametersSummary : AbstractBindableConcept, IEquatable<MultipleGenericParametersSummary>
    {
        /// <summary>
        /// Defines the current argument type declared when the method is called
        /// </summary>
        public List<string> GenericArgumentTypes
        {
            get;
            set;
        }

        public string GenericArgumentTypesDescription
        {
            get 
            { 
                string strGenericArgumentTypesDescription = "";
                foreach (string strGenericArgumentType in GenericArgumentTypes)
                    strGenericArgumentTypesDescription += strGenericArgumentType + ".";
                return strGenericArgumentTypesDescription;
            }
        }


        /// <summary>
        /// Defines the generic argument type declared in the generic class definition
        /// </summary>
        public List<string> BaseGenericArgumentTypes
        {
            get;
            set;
        }



        public override bool IsRelationshipAutorized<T>()
        {
            Type paramType = typeof(T);
            if (typeof(IsContainedRelationship).IsAssignableFrom(paramType))
                return true;
            return false;
        }

        public override void ResolveInverseRelationships()
        {
            throw new NotImplementedException();
        }

        public bool Equals(MultipleGenericParametersSummary other)
        {
            throw new NotImplementedException();
        }
    }
}
